From: Karl Heuer Date: Wed, 13 Dec 1995 02:02:17 +0000 (+0000) Subject: (PTY_OPEN): Block SIGCHLD during openpty. X-Git-Tag: archive/raspbian/1%29.2+1-2+rpi1^2~5^2~85357 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:///%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:/?a=commitdiff_plain;h=cfbeebb056cf6dd903b04d00a77116cb42b955b5;p=emacs.git (PTY_OPEN): Block SIGCHLD during openpty. --- diff --git a/src/m/alpha.h b/src/m/alpha.h index ef070198e80..d113f8f32eb 100644 --- a/src/m/alpha.h +++ b/src/m/alpha.h @@ -266,8 +266,11 @@ extern void r_alloc_free (); do \ { \ int dummy; \ + SIGMASKTYPE mask; \ + mask = sigblockx (SIGCHLD); \ if (-1 == openpty (&fd, &dummy, pty_name, 0, 0)) \ fd = -1; \ + sigsetmask (mask); \ close (dummy); \ } \ while (0)